﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Lekker.Data.Model;

namespace Lekker.Data.Recipes {
    public interface IRecipeDao {

        /// <summary>
        /// Returns all recipes
        /// </summary>
        /// <returns></returns>
        IEnumerable<Recipe> GetRecipes();

        /// <summary>
        /// Returns the 20 recent recipes
        /// </summary>
        /// <returns></returns>
        IEnumerable<Recipe> GetRecentRecipes();

        /// <summary>
        /// Returns the 5 recent guest menus
        /// </summary>
        /// <returns></returns>
        IEnumerable<GuestMenu> GetRecentGuestMenus();

        /// <summary>
        /// Returns the Recipe for the given id
        /// </summary>
        /// <param name="id">Recipe id</param>
        Recipe GetRecipe(int id);

        /// <summary>
        /// Updated the recipe
        /// </summary>
        /// <param name="recipe"></param>
        void UpdateRecipe(Recipe recipe);
    }
}
